package com.qckj.amz.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.qckj.common.annotation.Excel;
import com.qckj.common.core.domain.BaseEntity;
import lombok.Data;

import javax.persistence.*;
import java.util.Date;

/**
 * 附加属性维护对象 t_config_attr_atch
 *
 * @author luchuan
 * @since 1.0 2022-01-10
 */
@Entity
@Table(name = "t_config_attr_atch")
@Data
public class ConfigAttrAtch extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** 主键id */
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Id
    @Column(name="id")
    private Long id;

    /** 产品分类 */
    @Excel(name = "产品分类")
    @Column(name="product_category")
    private String productCategory;

    /** 属性字段：与t_product_temp_attr表字段对应 */
    @Excel(name = "属性字段")
    @Column(name="attr_field")
    private String attrField;

    /** 属性名称中文 */
    @Excel(name = "属性名称中文")
    @Column(name="attr_name_cn")
    private String attrNameCn;

    /** 属性名称英文 */
    @Excel(name = "属性名称英文")
    @Column(name="attr_name_en")
    private String attrNameEn;

    /** 属性类型 */
    @Excel(name = "属性类型")
    @Column(name="attr_type")
    private String attrType;

    /** 属性类型下拉框：[{"label": "选项名称","value":"选项值"}] */
    @Excel(name = "属性类型下拉框")
    @Column(name="attr_type_select")
    private String attrTypeSelect;

    /** 属性长度 */
    @Excel(name = "属性长度")
    @Column(name="attr_length")
    private Integer attrLength;

    /** 属性排序 */
    @Excel(name = "属性排序")
    @Column(name="attr_sort")
    private Integer attrSort;

    /** 是否必填 */
    @Excel(name = "是否必填")
    @Column(name="is_required")
    private String isRequired;

    /** 状态 */
    @Excel(name = "状态")
    @Column(name="status")
    private String status;

    /** 创建人 */
    @Excel(name = "创建人")
    @Column(name="create_by")
    private String createBy;

    /** 创建时间 */
    @Column(name="create_time")
    private Date createTime;

    /** 更新人 */
    @Column(name="update_by")
    private String updateBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    @Column(name="update_time")
    private Date updateTime;

    /** 备注 */
    @Excel(name = "备注")
    @Column(name="remark")
    private String remark;


}
